<script setup lang='ts'>
const inputQQ = (e: Event) => {
  console.log((e.target as HTMLInputElement).value)
}
const onEnter = (e: KeyboardEvent) => {
  console.log(e.key)
}
</script>

<template>
  <div>
    <input @input="inputQQ" @keyup.enter="onEnter">
  </div>
</template>

<style scoped></style>